#include<stdio.h>
unsigned int count(unsigned int a[8],unsigned int b[8],unsigned int c[8]){
	int i;
	for(i=0;i<8;i++){
		if(a[i]>b[i])c[i]=a[i];
		else c[i]=b[i];
	}
	
}
main()
{  
	unsigned int a[8],b[8],c[8],i;
	for(i=0;i<8;i++)scanf("%d",&a[i]);
	for(i=0;i<8;i++)scanf("%d",&b[i]);
	count(a,b,c);
	for(i=0;i<8;i++)scanf("%d\n",c[i]);
}